package com.tony.mindwarning.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: DateUtils
 * @Auther: 皮蛋布丁
 * @Date: 2021/04/07/22:04
 * @Description:
 */
public class DateUtils {
    
    /**
    * @Description: getNowTime 获取系统当前时间
    * @Param: []
    * @return: java.lang.String
    * @Author: 皮蛋布丁
    */
    public static String  getNowTime(){
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return simpleDateFormat.format(new Date());
    }

    public static String  getTime(){
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss");
        return simpleDateFormat.format(new Date());
    }
}
